<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
3
</body>
</html>
<script>
    let json = [
        {
            "id": "1",
            "name": "张三",
            "age": "18",
        },
        {
            "id": "2",
            "name": "李四",
            "age": "18",
        },
        {
            "id": "3",
            "name": "王五",
            "age": "18",
        }
    ]
    console.log(json)
    // 将JSON对象转换为字符串
    let str = JSON.stringify(json);
    console.log(str);
    // 将字符串转换为JSON对象
    let obj = JSON.parse(str);
    console.log(obj);
</script>